package day01;

/**
 * @author feng
 * @Date 2021/7/6 15:32
 */

// 字符串的拼接，比较
public class StringTest01<test> {
    public static void main(String[] args) {

        String geeting = "Hello";
        //最后一个元素是第一个不想要的位置
        String s1= geeting.substring(0,3) + "lo";

        System.out.println(s1.equals(geeting));
        // 忽略大小写
        String s2 = "hello";
        System.out.println(geeting.equalsIgnoreCase(s2));


    }


    }


